xen/arm: vgic: Introduce helpers to extract/update/clear/set vGIC register ...
authorJulien Grall <julien.grall@citrix.com>
Wed, 18 Nov 2015 16:42:42 +0000 (16:42 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Nov 2015 12:29:26 +0000 (12:29 +0000)
commit423e9ecdc26c4b40c8db1fcc63b3655463c29976
tree4d4da5d77c7bb87b26f64cbcb031c729e4b9932f
parent5d495f4349b56b5fc5a95a1918dd8b1c960b210b
xen/arm: vgic: Introduce helpers to extract/update/clear/set vGIC register ...

and use them in the vGIC emulation.

The GIC registers may support different access sizes. Rather than open
coding the access for every registers, provide a set of helpers to access
them.

The caller will have to call vgic_regN_* where N is the size of the
emulated registers.

The new helpers supports any access size and expect the caller to
validate the access size supported by the emulated registers.

Finally, take the opportunity to fix the coding style in section we are
modifying.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic-v3.c
xen/include/asm-arm/vgic.h